<template>
  <div class="container question">
      <Header />
      <div class="main">
        <h2>{{$t("index.question")}}</h2>
        <ul>
          <li v-for="(item,index) in questionList" :key="index" @click="$router.push(item.url)">
            <span>{{item.title}}</span>
            <img src="../../assets/img/right.png" alt="">
          </li>
        </ul>
      </div>
  </div>
</template>

<script>
import Header from '../../components/Header.vue';
export default {
  components:{
    Header
  },
  data(){
    return{
      questionList:[
        {title:this.$t("question.title.intro"),url:'/intro?question=intro'},
        {title:this.$t("question.title.equity"),url:'/intro?question=equity'},
        {title:this.$t("question.title.autofight"),url:'/intro?question=autoFight'}
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.question{
  .main{
    padding: 0 .15rem;
    h2{
      font-size: .26rem;
    }
    ul{
      li{
        margin: .16rem 0;
        background: #283E4F;
        height: .4rem;
        border-radius: .02rem;
        padding: 0 .11rem;
        font-size: .15rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        img{
          height: .1rem;
          width: .06rem;
        }
      }
    }
  }
}
</style>